import React, { Component } from 'react'
import HomehotItem from '../homehot-item/homehot-item'
import './homehot.less'
export default class Homehot extends Component{
    render(){
        console.log(this.props.arr)
        return(
            <div>
                <div className='homehot-title'>{this.props.title}</div>
                <div className='homehot-box'>
                    
                    {this.props.arr.map((ele,index)=>{
                        return <HomehotItem key={index} data={ele}/>
                    })}
                    
                </div>
            </div>
        )
    }
}